<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/user/addUser}" method="post">
         <input type="hidden" name="userId" th:value="${user.userId}">
    姓名：<input type="text" name="userName" th:value="${user.userName}"/><br/>
    密码：<input type="text" name="password" th:value="${user.password}"/><br/>
    描述：<input type="text" name="userDescription" th:value="${user.userDescription}"/><br/>
    角色：<input type="radio" name="roleId" value="1" th:checked="${user.roleId==1}"/>管理员
         <input type="radio" name="roleId" value="0" th:checked="${user.roleId==0}"/>普通用户<br/>
    用户类型：<input type="radio" name="userType" value="1" th:checked="${user.userType==1}"/>管理员
            <input type="radio" name="userType" value="0" th:checked="${user.userType==0}"/>普通用户<br/>
    日期：<input type="date" name="inputDate" th:value="${#dates.format(user.inputDate,'yyyy-MM-dd')}"/><br/>

    <input type="submit" value="修改"/><br/>
</form>
</body>
</html>